/****************************************************/
// Theme name: Nexus - Bootstrap Admin Template
// Theme URI: http://nexus.lethemes.net/1.0/html/
// Description: Nexus is a fully responsive admin dashboard template
// Tags: admin, admin dashboard, cms, crm, project managerment, responsive, webapp, backend, bootstrap admin, responsive admin
// Author: Loi Le
// Version: 1.0
/****************************************************/

// Determinate
// --------------------------------------------------
var mp = new Mprogress({
    parent: '#mprogress'
});
$("#mprogressStart").click(function() {
    mp.start();
});
$("#mprogressSet").click(function() {
    mp.set(0.4);
});
$("#mprogressInc").click(function() {
    mp.inc();
});
$("#mprogressEnd").click(function() {
    mp.end(true);
});

// Buffer
// --------------------------------------------------
var mp2 = new Mprogress({
    template: 2,
    parent: '#mprogressBuffer'
});
$("#mprogressBufferStart").click(function() {
    mp2.start();
});
$("#mprogressBufferEnd").click(function() {
    mp2.end(true);
});
$("#mprogressBufferSet").click(function() {
    mp2.set(0.4);
});
$("#mprogressBufferSetBuffer").click(function() {
    mp2.setBuffer(0.5);
});
$("#mprogressBufferInc").click(function() {
    mp2.inc();
});

// Indeterminate
// --------------------------------------------------
var mp3 = new Mprogress({
    template: 3,
    parent: '#mprogressIn'
});
$("#mprogressInStart").click(function() {
    mp3.start();
});
$("#mprogressInEnd").click(function() {
    mp3.end(true);
});

// Query Indeterminate and Determinate
// --------------------------------------------------
var mp4 = new Mprogress({
    template: 4,
    parent: '#mprogressQuery'
});
$("#mprogressQueryStart").click(function() {
    mp4.start();
});
$("#mprogressQueryEnd").click(function() {
    mp4.end(true);
});